package com.team.cloudsharing.dao.sharefolder;

import java.util.List;

import com.team.cloudsharing.dao.folder.FolderDO;
import com.team.cloudsharing.dao.user.UserDO;


public interface ShareFolderDAO {

	public long insertShareFolder(ShareFolderDO shareFolderDO);
	
	public long updateShareFolder(ShareFolderDO shareFolderDO);

	public ShareFolderDO findShareFolderByFolderNameAndUserId(String folderName, UserDO userDO);
	
	public ShareFolderDO findShareFolderByFolderIdAndUserId(FolderDO folderDO, UserDO userDO);
	
	public List<ShareFolderDO> findAllShareFolderByUserId(UserDO userDO);
	
	public boolean deleteShareFolder(long shareFolderId);

	public List<ShareFolderDO> findAllShareFolderByFolderDO(FolderDO folderDO);

	public void deleteShareFolderByFolderDOAndUserDO(FolderDO folderDO, UserDO userDO);

	public void deleteShareFolderByFolderDO(FolderDO folderDO);
//	public void deleteShareFolderByFolderDO(Long folderDO);
}
